package com.example.demo;

import org.noear.solon.net.http.HttpExtension;
import org.noear.solon.net.http.HttpSslSupplier;
import org.noear.solon.net.http.HttpUtils;
import org.noear.solon.net.http.impl.HttpSslSupplierDefault;

import javax.net.ssl.SSLContext;

/**
 * @author noear 2025/8/8 created
 */
public class ExtensionHttp extends HttpSslSupplierDefault implements HttpExtension, HttpSslSupplier {

  @Override
  public SSLContext getSslContext() {
    return getAnySslContext();
  }

  @Override
  public void onInit(HttpUtils httpUtils, String url) {
    httpUtils.ssl(this);
  }
}
